package com.atguigu.srb.core.mapper;

import com.atguigu.srb.core.pojo.entity.UserAccount;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import org.apache.ibatis.annotations.Param;

import java.math.BigDecimal;

/**
 * <p>
 * 用户账户 Mapper 接口
 * </p>
 *
 * @author Atguigu
 * @since 2023-05-26
 */
public interface UserAccountMapper extends BaseMapper<UserAccount> {

    UserAccount selectUserAccountByBindCode(String bindCode);

    void updateInvestAmountByUserId(@Param("amount") BigDecimal transAmount,@Param("userId") Long userId);

    void updateFreezeAmountByUserId(@Param("userId")Long investUserId, @Param("amount")BigDecimal investAmount);
}
